<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Cookie 2</title>
		<script type="text/javascript" src="js/cookie.js"></script>
		<script language="javascript" type="text/javascript">
			function btnGetCookie_onclick() {
				spnInfo.innerHTML = getCookie("myvalue");
				alert(document.cookie);
			}
		</script>
	</head>

	<body>
		<input type="button" value="获取cookie值" id="btnGetCookie" onclick="btnGetCookie_onclick()" />
		<span id="spnInfo"></span>
	</body>

</html>